package com.cunshe;

import com.google.gson.Gson;
import com.sunkee.commons.security.md5.DefaultPasswordEncoder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public DefaultPasswordEncoder saltPasswordEncoder() {
        return new DefaultPasswordEncoder();
    }

    @Bean
    public Gson gson() {
        return new Gson();
    }

}
